package com.ruyichuxing.api;

import com.ruyichuxing.model.Find;
import com.ruyichuxing.model.Interesting;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

/**
 * @author zsj
 */

public interface InterestingApi {

	@GET("v3/videos?num=10")
	Observable<Interesting> getInteresting(
			@Query("start") int start, @Query("categoryId") int categoryId,
			@Query("strategy") String strategy);

	@GET("v3/tag/videos")
	Observable<Interesting> related(
			@Query("start") int start, @Query("tagId") int id,
			@Query("strategy") String strategy);

	@GET("v3/pgc/videos")
	Observable<Interesting> relatedHeader(
			@Query("start") int start, @Query("pgcId") int id,
			@Query("strategy") String strategy);

	@GET("v3/categories/detail")
	Observable<Find> findVideo(@Query("id") int id);

	@GET("v3/categories/videoList")
	Observable<Interesting> videoList(@Query("id") int id, @Query("start") int start,
	                                  @Query("strategy") String strategy);

}
